package com.plugin.plugin_jd_upgrade

import android.app.Application
import com.jingdong.sdk.jdupgrade.JDUpgrade
import com.jingdong.sdk.jdupgrade.UpgradeConfig

object Init {
    /**
     * 初始化升级SDK
     */
    fun initUpgradeConfig(application: Application) {
        val builder: UpgradeConfig.Builder = UpgradeConfig.Builder(
            "08006e4eeeb54f69ac6c80b2264c8db0",
            "111a013723f7ff5f3565bd79cf355649",
            R.drawable.ic_logo
        )
            .setUuid(android.os.Build.HOST)
            .setAutoInstallAfterDownload(true)
        JDUpgrade.init(application, builder.build())
    }
}